<%@page import="java.util.Calendar;" %>
<script type="text/javascript">
var d = new Date();
</script>

<form enctype="multipart/form-data" method="post" action="servlet">
	<table>
	  <tr>
	    <td>Auction title</td>
		<td><input type="text" name="title" required autofocus/></td>
	  </tr>
	  <tr>
	    <td>Details</td>
	    <td><textarea name="details" cols=40 rows=6></textarea></td>
	  </tr>
	  <tr>
	    <td>Price</td>
	    <td><input type="number" name="price" min="1" required/></td>
	  </tr>
	  <tr>
	    <td>Dagen tot einddatum</td>
	    <td>
	    	<select name="dend">
	    		<%
	    			for(int i =1;i<=31;i++){
	    			%><option value="<%=i%>"><%=i%></option><%	
	    			}
	    		%>
	    	</select>
	    </td>
	  </tr>
	  <tr>
	    <td>Picture</td>
	    <td><input type="file" name="pic"/></td>
	  </tr>
	  <tr>
	  
	  <% String uid = session.getAttribute("userid").toString(); %>
	  <td></td>
  	  <td>
    	<input type="hidden" name="owner" value=<%=uid%>>
    	<input type="submit" class="g-button g-button-submit" id="submit" name="button" value="Add Auction"/>
	  	<input type="reset" class="g-button g-button-submit" id="reset" value="Reset"/>
	  	<input type="button" class="g-button g-button-submit" onclick="setVisible('addAuction')" value="Close"/>
	  </td>
	  </tr>
	</table>
</form>